package io.renren.modules.nuaa.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.renren.common.utils.DateUtils;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
* 题目
*
* @author whc 15953295779@126.com
* @since 3.0 2023-11-03
*/
@Data
@ApiModel(value = "题目")
public class TQuestionItemDTO implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    private Long id;
    @ApiModelProperty(value = "问卷id")
    private Integer questionId;
    @ApiModelProperty(value = "标题")
    private String title;
    @ApiModelProperty(value = "类型")
    private Integer type;
    @ApiModelProperty(value = "排序")
    private Integer sort;
    @ApiModelProperty(value = "标准答案")
    private String standard;
    @ApiModelProperty(value = "答题结果")
    private String answer;
    @ApiModelProperty(value = "分值")
    private Integer score;
    @ApiModelProperty(value = "选项内容")
    private String content;
    @ApiModelProperty(value = "创建者")
    private String creator;
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = DateUtils.DATE_TIME_PATTERN)
    private Date createDate;
    @ApiModelProperty(value = "更新者")
    private String updater;
    @ApiModelProperty(value = "更新时间")
    @JsonFormat(pattern = DateUtils.DATE_TIME_PATTERN)
    private Date updateDate;

    private List<TQuestionOptionsDTO> options=new ArrayList<>();

    @TableField(exist=false)
    private List<TQuestionOptionsDTO> optionsDTOList;


}